<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			.box1{
				background-color: #000000;
				width: 300px;
				height: 300px;
				position: relative;
				margin: 0 auto;
				text-align: center;
			}
			.box2{
				width: 200px;
				height: 200px;
				background-color: red;
				position:relative;
				left: 0;
				bottom: 0;
				margin: 10px auto;
			}
			.box3{
				width: 100px;
				height: 100px;
				background-color: gray;
				position: absolute;
				right: 0;
				top: 0;
				
			}
		</style>
	</head>
	<body>
		<div class="box1">
			<div class="box2">
				<div class="box3"></div>
			</div>
		</div>
	</body>
</html>
